package com.mall.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.mall.common.utils.PageUtils;
import com.mall.entity.SkuInfo;
import com.mall.vo.AttrsVo;
import com.mall.vo.PurchaseVo;
import com.mall.vo.SkuVo;

import java.util.List;
import java.util.Map;

/**
 * sku信息
 *
 * @author chenshun
 * @email sunlightcs@gmail.com
 * @date 2022-08-24 16:47:36
 */
public interface SkuInfoService extends IService<SkuInfo> {
    void saveSkuInfo(SkuInfo skuInfo);

    void saveSku(SkuVo vos);

    void saveAllAttr(String groupName, Long id, AttrsVo[] attrsVos);

    List<SkuInfo> selectPrice(Long[] attrIds, Long spuId);

    PurchaseVo selectPriceAndStock(Long[] attrIds, Long spuId);


    //  PageUtils queryPage(Map<String, Object> params);
}

